#include"tool.h"

std::string numberToString(float number)
{
    std::string res;
    std::stringstream ss;
    ss << number;
    ss >> res;
    return res;
}

bool isNum(const std::string & number)
{
    std::stringstream sin(number);
    double d;
    char c;
    if (!(sin >> d))
        return false;
    if (sin >> c)
        return false;
    return true;
}
